import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import * as $electron from './tools/electron.ts'
import 'virtual:svg-icons-register'
// 全局组件
import components from './components/index.ts'
// 事件通道
import { EventChannel } from './utils/EventChannel.ts'
import clickOutside from './directive/clickOutside.ts'
const app = createApp(App)

app.config.globalProperties.$electron = $electron
app.config.globalProperties.$eventChannel = EventChannel.getInstance()
app.directive('clickOutside',clickOutside as any)
app.use(components)
app.use(router)
app.mount('#app')
